import { cloneDeep } from 'lodash';
var LeggoSchema = (function () {
  function LeggoSchema(schemaType, leggoItemInfo) {
    var _this = this;
    this.getStringedName = function () {
      return String(_this.configs.itemProps.name);
    };
    this.id = Date.now().toString();
    this.formType = leggoItemInfo.formType;
    this.type = schemaType;
    this.configs = cloneDeep(leggoItemInfo).configs;
    this.currentItemValue = null;
    this.needDefineGetterProps = {};
  }
  return LeggoSchema;
})();
export { LeggoSchema };
